import javax.swing.*;
import javax.swing.JLabel;
import javax.swing.JTextField;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.factories.FormFactory;
import com.jgoodies.forms.layout.RowSpec;

/**
 * The TradePanel class holds text fields to be filled with the amount of items to buy or sell
 * @author Amy Lambeth
 */
public class TradePanelM6 extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7032936008895170324L;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;

	/**
	 * Create the panel.
	 */
	public TradePanelM6() {
		setLayout(new FormLayout(new ColumnSpec[] {
				FormFactory.UNRELATED_GAP_COLSPEC,
				ColumnSpec.decode("96px"),},
			new RowSpec[] {
				FormFactory.PARAGRAPH_GAP_ROWSPEC,
				RowSpec.decode("16px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("28px"),}));
		
		JLabel lblTrade = new JLabel("Amount");
		add(lblTrade, "2, 2, center, top");
		
		textField = new JTextField();
		add(textField, "2, 4, fill, top");
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		add(textField_1, "2, 6, fill, top");
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		add(textField_2, "2, 8, fill, top");
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		add(textField_3, "2, 10, fill, top");
		textField_3.setColumns(10);
		
		textField_4 = new JTextField();
		add(textField_4, "2, 12, fill, top");
		textField_4.setColumns(10);
		
		textField_5 = new JTextField();
		add(textField_5, "2, 14, fill, top");
		textField_5.setColumns(10);
		
		textField_6 = new JTextField();
		add(textField_6, "2, 16, fill, top");
		textField_6.setColumns(10);
		
		textField.setText("" + 0);
		textField_1.setText("" + 0);
		textField_2.setText("" + 0);
		textField_3.setText("" + 0);
		textField_4.setText("" + 0);
		textField_5.setText("" + 0);
		textField_6.setText("" + 0);
		

	}

}
